package com.atguigu.yygh.msm.service.impl;

import com.atguigu.yygh.msm.service.MsmService;
import com.atguigu.yygh.msm.utils.HttpUtils;
import com.atguigu.yygh.vo.msm.MsmVo;
import org.apache.http.HttpResponse;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import java.util.HashMap;
import java.util.Map;

@Service
public class MsmServiceImpl implements MsmService {



    @Override
    public void sendSms(MsmVo msmVo) {
        Assert.isTrue(msmVo.getPhone()!=null,"手机号不存在");
        System.out.println(msmVo);
        System.out.println("给手机"+msmVo.getPhone()+"发送短信");
    }
}
